package com.tinem.platform.client.link;

import com.tinem.platform.module.pojo.vo.link.AddReq;
import com.tinem.platform.module.pojo.vo.link.AddRes;
import com.tinem.platform.module.pojo.vo.link.EventReq;
import com.tinem.platform.module.pojo.vo.link.EventRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className LinkClient
 * @description TODO
 * @site 
 * @company 
 * @create 2020-07-08 19:48
 */
@FeignClient("platform-cloud-service-link")
public interface LinkClient {

    @PostMapping("/add.api")
    @ResponseBody AddRes add(@RequestBody AddReq addReq);

    @PostMapping("/event.api")
    @ResponseBody EventRes event(@RequestBody EventReq eventReq);
}
